package com.aaa.d02;

/**
 * @Author: whj
 * @Version 1.0
 * @Date: 2022/10/25  9:58
 */
public class Point<T> {
    private T X;
    private T y;

    public Point(T x, T y) {
        X = x;
        this.y = y;
    }

    public T getX() {
        return X;
    }

    public void setX(T x) {
        X = x;
    }

    public T getY() {
        return y;
    }

    public void setY(T y) {
        this.y = y;
    }

    @Override
    public String toString() {
        return "Point{" +
                "X=" + X +
                ", y=" + y +
                '}';
    }
}
